(function(){
	var elist = document.getElementById("mx-bubble").getElementsByTagName("span");
	for(var i=0; i<elist.length; i++){
		
		touch.on(elist[i], 'touchstart', function(ev){
			ev.preventDefault();
		});

		var dx, dy;

		touch.on(elist[i], 'drag', function(ev){
			dx = dx || 0;
			dy = dy || 0;
			//log("当前x值为:" + dx + ", 当前y值为:" + dy +".");
			var offx = dx + ev.x + "px";
			var offy = dy + ev.y + "px";
			this.style.webkitTransform = "translate3d(" + offx + "," + offy + ",0)";
		});

		touch.on(elist[i], 'dragend', function(ev){
			dx += ev.x;
			dy += ev.y;
		});
	}
})();